// Include files.
#include "WPILib.h"
#include "DigitalInputCheckState.hpp"

DigitalInputCheckState::DigitalInputCheckState(DigitalInput &input) :
	m_input(input)
{
}

void DigitalInputCheckState::InitializeImpl()
{
	if (!m_input.Get())
		SetDoneCode(StateDoneCode::GetSuccessCode());
	else
		SetDoneCode(StateDoneCode::GetNotYetCode());
}
